package com.cuitrip.business.tripservice.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;
import com.lab.adapter.IAdapterData;

import java.io.Serializable;

/**
 * Created by ak on 4/19/16.
 */
public class PictureDescription implements IAdapterData, Parcelable, Serializable {

    public static final Creator<PictureDescription> CREATOR = new Creator<PictureDescription>() {
        @Override
        public PictureDescription createFromParcel(Parcel in) {
            return new PictureDescription(in);
        }

        @Override
        public PictureDescription[] newArray(int size) {
            return new PictureDescription[size];
        }
    };
    public String url;
    @JSONField(name = "descript")
    public String description = "";

    public PictureDescription() {
    }

    protected PictureDescription(Parcel in) {
        url = in.readString();
        description = in.readString();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeString(description);
    }

}
